package com.example.workbench.mapper;

import com.example.workbench.entity.DbUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 
 * @since 2024-06-26
 */
@Mapper
public interface DbUserMapper extends BaseMapper<DbUser> {
    @Select("select * from db_user where username = #{username} and is_delete = 0")
    DbUser getUserByUserName(@Param("username") String username);
}
